import request from '@/utils/request'
import type { ResultModel } from './model/model'

// 定义登录请求数据类型
interface LoginData {
  username: string
  password: string
}

//API 调用
export const loginApi = (data: LoginData) => request.post<any, ResultModel>('/login', data)
